home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / cracking / BeginnersMacAssembly.sit.hqx / BeginnersMacAssembly.rsrc / PICT_81.png < prev    next >
Portable Network Graphic  |  1997-07-26  |  120KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | earth | poster | reckoner | sky | windowpane
OCR: Sat, Feb 17 1996 Beginn Processing embly Language Programming Rage writing routines for the various bits, we can keep the main loop very readable Here it is: bounce loop: bsr icl8 print drrp the blob vector 'blob update position apd vector y 'blob bsr.s check boundries check and adjust vectors necessary movem. d0-d1/a1,-(sp) save X,V and blob pointer bst bsr plot getkey star turbo plot see manual random for star key mapping tst. W op bmi unb key was pressed movem (sp)+ ,d0-d1/a1 get regs back bra.s bounce loop As you can see there are no major surprises here we draw the blob ppe the vectors to blob and then goto subroutine that checks the blobs position and adjusts the vectors accordingly. Next we save the blob data on the stack plot star, then check the key board If no key was pressed we ...